package collections;

import java.util.*;

public class Max1
{
    public static void main(String args[])
    {
        Set hs = new HashSet();
        hs.add("1");
        hs.add("2");
        hs.add("3");
        hs.add("2");

        Iterator iter = hs.iterator();
        while (iter.hasNext())
            System.out.println(iter.next());

        System.out.println("max = " + Collections.max(hs));
    }
}
